<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/taglibs.jsp"%>

<form action="${ctx}/sys/menu/add" method="post">
    <table>
        <tbody>
            <tr>
                <td><label for="addform-id">菜单ID</label></td>
                <td><input type="text" id="addform-id" name="id" class="easyui-textbox"
                        data-options="validType:'length[0,32]', prompt:'不输入时会自动生成'"/>
                </td>
            </tr>
            <tr>
                <td><label for="addform-name">菜单名</label></td>
                <td><input type="text" id="addform-name" name="name" class="easyui-textbox"
                        data-options="required:true"/>
                </td>
            </tr>
            <tr>
                <td><label for="addform-path">菜单路径</label></td>
                <td><input type="text" id="addform-path" name="path"/></td>
            </tr>
            <tr>
                <td><label for="addform-aclIndex">访问控制索引</label></td>
                <td><input type="text" id="addform-aclIndex" name="aclIndex" class="easyui-textbox"
                        data-options="required:true, validType:'length[0,30]'"/>
                </td>
            </tr>
            <tr>
                <td><label for="addform-order">排序号</label></td>
                <td><input type="text" id="addform-order" name="order" class="easyui-textbox"
                        data-options="validType:'number'"/>
                </td>
            </tr>
            <tr>
                <td><label for="addform-parentId">上级菜单</label></td>
                <td><input type="text" id="addform-parentId" name="parentId" value="${parentId}" readonly="readonly" class="easyui-textbox"
                        data-options="validType:'length[0,32]'"/>
                </td>
            </tr>
        </tbody>
    </table>
</form>
